<template>
  <div>
    <div class="top">
      <!-- 头部 -->
      <MyHeader />
      <!-- Logo -->
      <MyLogo />
      <!-- nav -->
      <MyNav />
    </div>
    <!-- list -->
    <!-- <MyList /> -->
    <div class="wrap">
      <transition name="fade" mode="out-in">
        <router-view />
      </transition>
    </div>
  </div>
</template>

<script>
import MyHeader from "@/components/home/MyHeader.vue";
import MyLogo from "@/components/home/MyLogo.vue";
import MyNav from "@/components/home/MyNav.vue";
// import MyList from "@/components/home/MyList.vue";
export default {
  data() {
    return {};
  },

  components: {
    MyHeader,
    MyLogo,
    MyNav,
    // MyList,
  },

  computed: {},

  // mounted() {
  //   console.log(this.$route);
  // },

  methods: {},
};
</script>

<style lang="less" scoped>
.top {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 155px;
  z-index: 99;
}
.wrap {
  position: fixed;
  left: 0;
  right: 0;
  top: 155px;
  bottom: 50px;
  overflow: hidden;
}

.fade-enter-active,
.fade-leave-active {
  transition: opacity 0.5s;
}
.fade-enter, .fade-leave-to /* .fade-leave-active below version 2.1.8 */ {
  opacity: 0;
}
</style>
